from setuptools import setup, find_packages

from setuptools.extension import Extension
from setuptools.config import read_configuration

from Cython.Build import cythonize

import numpy

extensions = [
    Extension("SpecDisperser.disperse_c.interp", ["SpecDisperser/disperse_c/interp.pyx"],
        include_dirs = [numpy.get_include()],
        libraries=["m"]),

    Extension("SpecDisperser.disperse_c.disperse", ["SpecDisperser/disperse_c/disperse.pyx"],
        include_dirs = [numpy.get_include()],
        libraries=["m"]),
]


version='1.0.0'

setup(
    name = "SpecDisperser",
    version = version,
    description = "Slitless spec disperse",

    packages=['SpecDisperser', 'SpecDisperser/disperse_c'],
    install_requires=[
        'galsim',
        'numpy',
        'scipy',
        'astropy',
    ],
    ext_modules = cythonize(extensions),

)


